<?php
require_once SOURCE_EXT_PATH.'library/SessionBase.php';
class UserSession
{
	private static $rootKey = 'user';

	public static function setUserInfo($value)
	{
		SessionBase::setSession(self::$rootKey, 'StudentInfo', $value);
	}

	public static function getUserInfo()
	{
		return SessionBase::getObjectSession(self::$rootKey, 'StudentInfo');
	}

	public static function clearUserInfo()
	{
		SessionBase::clearSession(self::$rootKey,'StudentInfo');
	}
	
	
	public static function setRegisteInfo($value)
	{
		SessionBase::setSession(self::$rootKey, 'Registe', $value);
	}

	public static function getRegisteInfo()
	{
		return SessionBase::getObjectSession(self::$rootKey, 'Registe');
	}

	public static function clearRegisteInfo()
	{
		SessionBase::clearSession(self::$rootKey,'Registe');
	}
	
	public static function setCaptcha($value){
		SessionBase::setSession(self::$rootKey, 'captcha', $value);
	}
	
	public static function getCaptcha()
	{
		return SessionBase::getSession(self::$rootKey,'captcha');
		
	}

	public static function clearCaptcha()
	{
		SessionBase::clearSession(self::$rootKey,'captcha');
	}

}